package top.linuyx.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Author Linuyx
 * @Description LabelMapper
 * @Date Created in 2021-04-20 19:36
 */

@Repository
public interface LabelMapper {

    /**
     * 根据标签名称获取标签对应的id
     * @return
     */
    @Select("select id from label where name=#{name} and is_deleted=0")
    Long getIdByname(@Param("name") String name);

}
